#!/bin/bash

echo "start >>>>>>"
# dir
dir="${HOME}/.docker-storage/minecraft/data"
mkdir -p "$dir"

#
url=$(curl -s https://api.github.com/repos/yushijinhun/authlib-injector/releases/latest | grep "browser_download_url" | cut -d '"' -f 4)
echo "url: ${url}"

# download
curl -fsSL -o ${dir}/authlib-injector.jar ${url}
echo "file: ${dir}/authlib-injector.jar"
echo "Download successful"
